<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="550" cellpadding="0" cellspacing="0" class="box">
<caption title="chi tiết sản phẩm" class="captionTable">
	CHỈNH SỬA THÔNG TIN SẢN PHẨM
</caption>
<tr>
	<td>
       <table width="100%" cellpadding="4" cellspacing="4" >
			<tr>
			  <td width="25%" align="left" valgn="top" ><img src="images/sanpham/<?php echo $row[3];?>" border="0" /></td>
			  <td colspan="2" valign='top'>
              	 <table width="100%" border="0">
  <tr>
 <th align="left" scope="row">Tên sản phẩm:</th>
    <td><input name="tensp" type="text" value="<?php echo $row[1]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Trọng lượng:</th>
    <td><input name="trongluong" type="text" value="<?php echo $row[13]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Kích thước:</th>
    <td><input name="kichthuot" type="text" value="<?php echo $row[12]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Màu sắc:</th>
    <td><input name="mausac" type="text" value="<?php echo $row[10]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Mạng:</th>
    <td><input name="mang" type="text" value="<?php echo $row[9]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Màn hình:</th>
    <td><input name="manhinh" type="text" value="<?php echo $row[14]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Bộ nhớ:</th>
    <td><input name="bonho" type="text" value="<?php echo $row[15]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Ngôn ngữ:</th>
    <td><input name="ngonngu" type="text" value="<?php echo $row[16]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Thời gian pin:</th>
    <td><input name="thoigianpin" type="text" value="<?php echo $row[18]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Hình nhỏ:</th>
    <td><input name="hinhnho" type="file" value="<?php echo $row[3]; ?>" size="40" /></td>
  </tr>
  <tr>
    <th align="left" scope="row">Hình lớn:</th>
    <td><input name="hinhlon" type="file" value="<?php echo $row[4]; ?>" size="40" /></td>
  </tr>
 </table>
		      </td>
	     </tr>
		<tr>
  		<td colspan="3" align="left" valgn="top" >
  			<img src="images/sanpham/<?php echo $row[4];?>" border="0" />

            </td>
     </tr>                                                              
	   <?php if($ht){?>
			<tr>
                <td colspan="3">
                    <table width=99% cellpadding="0" cellspacing="0" class="box">
                        <tr>
                            <td colspan='2'>
                                <b><u>khuyến mãi của mặt hàng</u></b><br>  <?php echo $ht[0];?> 
                            </td>
                        </tr>
                        <tr>
                           <td colspan="2">
                                 <?php echo $ht[1]; ?><br>Duoc ap dung tu ngay <?php echo $ht[2];?> &nbsp;Den ngay <?php echo $ht[3]; ?>
                           </td>
                        </tr>
                    </table>
                 </td>
             </tr>
	  <?php } ?>
      
            <tr><td colspan='3'><b><u>Đặc điểm:</u></b><br> <textarea name="dacdiem" cols="100" rows="5" ><?php echo nl2br(ucfirst($row[17]));?></textarea></td></tr>
            <tr><td colspan='3'><b><u>Tính năng:</u></b><br><textarea name="tinhnang" cols="100" rows="5" ><?php echo nl2br(ucfirst($row[8]));?></textarea></td></tr>
            <tr><td colspan='3'><b><u>Tổng quan:</u></b><br><textarea name="tongquan" cols="100" rows="5" ><?php echo nl2br(ucfirst($row[7]));?></textarea></td></tr>
            <tr><td colspan='3'><b><u>Hướng dẫn sử dụng:</u></b><br><textarea name="hdsd" cols="100" rows="5" ><?php echo nl2br(ucfirst($row[19]));?></textarea></td></tr>
            <tr>
              <td colspan="2">&nbsp;</td>
              <td width="15%"><input type="submit" name="update" id="update" value="Cập nhật" /></td>
            </tr>
        </table>
	</td>
</tr>
</table>
</body>
</html>